package case8

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func Test() {

	fmt.Println("🎯案例八：YMAL渲染")

	r := gin.Default()

	r.GET("/someYAML", func(c *gin.Context) {
		c.YAML(http.StatusOK, gin.H{"message": "ok", "status": http.StatusOK})
	})

	r.Run(":60000")
}
